package com.cloud.pole.shop.service.goods.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cloud.pole.shop.biz.goods.ShopGoodsBrandBiz;
import com.cloud.pole.shop.model.entity.goods.ShopGoodsBrand;
import com.cloud.pole.shop.service.goods.GoodsBrandService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;

import lombok.extern.slf4j.Slf4j;

/*
*2019年1月30日
*cloud-user
*author:frank-chen
*/
@Slf4j
@Service
public class GoodsBrandServiceImpl implements GoodsBrandService{
	
	@Autowired 
	private ShopGoodsBrandBiz shopGoodsBrandBiz;
	
	@Override
	public PageInfo<ShopGoodsBrand> selectPageShopGoodsBrandAdminList(Map<String, Object> map, int currentPage, int pageSize) {
		PageHelper.startPage(currentPage, pageSize); 
    	List<ShopGoodsBrand> list = shopGoodsBrandBiz.selectPageShopGoodsBrandAdminList(map);
    	PageInfo<ShopGoodsBrand> page = new PageInfo<ShopGoodsBrand>(list);
    	return page;
	}
}
